import java.util.*;

public class TestFileClass {
    public static void main(String[] args) {
        java.io.File file = new java.io.File("test.txt");
        System.out.println("Exist? " + file.exists());
        System.out.println("File has " + file.length() + " bytes");
        System.out.println("Can be read? " + file.canRead());
        System.out.println("Can be executed? " + file.canExecute());
        System.out.println("Can be written? " + file.canWrite());
        System.out.println("Is it a dir? " + file.isDirectory());
        System.out.println("Is it a file? " + file.isFile());
        System.out.println("Is it absolute? " + file.isAbsolute());
        System.out.println("Is it hidden? " + file.isHidden());
        System.out.println("Absolute path is " + file.getAbsolutePath());
        System.out.println("Last modified " + new Date(file.lastModified()));
    }
}